let save = new XMLHttpRequest();
save.open("get", "../images/php/goodsAndShoppingCart/bannerGet.php", true);
save.send();
save.onreadystatechange = function () {
    if (save.readyState == 4 && save.status == 200) {
        fun(save.responseText)
    }
}
let oTxt = document.querySelectorAll(".txt")
function fun(resText) {
    resText = JSON.parse(resText)
    // console.log(resText[0].url + resText[0].img);
    for (let index in resText) {
        console.log(resText[index].url + resText[index].img);
        oTxt[index].src = resText[index].url + resText[index].img;
    }
}
// console.log(restext);
